package www.lagou.app;


import java.sql.SQLException;

public class TestAccoutTransfer {

    public static void main(String[] args) {

        // 定义转账信息 按照步骤 实现卡号：1122334455向55443332211转账5000元的操作；
        String senderCard = "1122334455";
        String receiverCard = "55443332211";
        int amount = 5000; //200000; //5000; //转账的金额钱数，5000 元

        AccountTransfer accountTransfer = null;
        try {
            accountTransfer = new AccountTransfer(senderCard, receiverCard, amount);
            accountTransfer.doTransfer();
        } catch (SQLException e) {
            e.printStackTrace();
            System.out.println("转账失败");
        } finally {
            if(accountTransfer != null) {
                accountTransfer.close();
            }
        }

    }
}
